package com.wondersgroup.fjzlpt.org.controller.view.qytj;

import com.alibaba.fastjson.JSONObject;
import com.wondersgroup.fjzlpt.org.util.ControllerCommonUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * 签约统计页面
 * <p>
 * <p>
 * Created by sanma on 2017/9/30.
 */
@Controller
@RequestMapping("/qytj")
public class QytjController {

    @RequestMapping("/index.html")
    public String index(HttpServletRequest request) {
        JSONObject requestData = ControllerCommonUtil.getRequestData(request);
        request.setAttribute("requestData", requestData);
        return "qytj/index";
    }

    /**
     * 跳转到签约事件详情页面
     * @param request
     * @return
     */
    @RequestMapping("/toQysjxq.html")
    public String qycsxq(HttpServletRequest request){
        //JSONObject requestData = ControllerCommonUtil.getRequestData(request);
        JSONObject result = new JSONObject();
        result.put("PTJGID" , request.getParameter("PTJGID"));
        result.put("TDID" , request.getParameter("TDID"));
        result.put("YSID" , request.getParameter("YSID"));
        result.put("SJLX" , request.getParameter("SJLX"));
        request.setAttribute("requestData", result);
        return "qytj/" + request.getParameter("TO");
    }
}
